﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class Control_ShowColumnName : System.Web.UI.UserControl
{
	public ColumnComponent clsColumnComp;
	public int nID;		// 栏目ID
	public Boolean bLabelOrLinkButton;		// 是显示一个标签还是Link按钮判断，true显示标签
	public MultiView multiView;
	public View viewShow;

	protected void Page_Load(object sender, EventArgs e)
	{
		if (!IsPostBack)
		{
			//multiView = new MultiView();

			bLabelOrLinkButton = true;
			nID = Convert.ToInt32(Request.QueryString["id"].Trim());
			clsColumnComp = new ColumnComponent();
			LabColumnName.Text = clsColumnComp.GetOneByID(nID).Name;
			BtnColumnName.Text = clsColumnComp.GetOneByID(nID).Name;
		}
	}

	protected void BtnColumnName_OnClick(object sender, EventArgs e)
	{
		multiView.SetActiveView(viewShow);
	}
}
